﻿#include "FITKAbaProfileBox.h"


Interface::FITKAbaProfile::FITKAbaProfileShape Interface::FITKAbaProfileBox::getShape() const
{
    return Interface::FITKAbaProfile::FITKAbaProfileShape::Box;
}

bool Interface::FITKAbaProfileBox::copy(FITKAbstractDataObject *obj)
{
    FITKAbaProfileBox* box = dynamic_cast<FITKAbaProfileBox*>(obj);
    if (box == nullptr)
        return false;
    this->setDataObjectName(box->getDataObjectName());
    m_width = box->m_width;
    m_height = box->m_height;
    m_thicknessType = box->m_thicknessType;
    m_thickness = box->m_thickness;
    m_t1 = box->m_t1;
    m_t2 = box->m_t2;
    m_t3 = box->m_t3;
    m_t4 = box->m_t4;
    return false;
}

double Interface::FITKAbaProfileBox::getWidth() const
{
    return m_width;
}

void Interface::FITKAbaProfileBox::setWidth(double value)
{
    m_width = value;
}

double Interface::FITKAbaProfileBox::getHeight() const
{
    return m_height;
}

void Interface::FITKAbaProfileBox::setHeight(double value)
{
    m_height = value;
}

Interface::FITKAbaProfileBox::BoxThickness Interface::FITKAbaProfileBox::getThicknessType() const
{
    return m_thicknessType;
}

void Interface::FITKAbaProfileBox::setThicknessType(BoxThickness type)
{
    m_thicknessType = type;
}

double Interface::FITKAbaProfileBox::getThickness() const
{
    return m_thickness;
}

void Interface::FITKAbaProfileBox::setThickness(double value)
{
    m_thickness = value;
}

double Interface::FITKAbaProfileBox::getT1() const
{
    return m_t1;
}

void Interface::FITKAbaProfileBox::setT1(double value)
{
    m_t1 = value;
}

double Interface::FITKAbaProfileBox::getT2() const
{
    return m_t2;
}

void Interface::FITKAbaProfileBox::setT2(double value)
{
    m_t2 = value;
}

double Interface::FITKAbaProfileBox::getT3() const
{
    return m_t3;
}

void Interface::FITKAbaProfileBox::setT3(double value)
{
    m_t3 = value;
}

double Interface::FITKAbaProfileBox::getT4() const
{
    return m_t4;
}

void Interface::FITKAbaProfileBox::setT4(double value)
{
    m_t4 = value;
}
